package com.ibangnuo.api.employee;

import com.ibangnuo.framework.domain.request.employee.EmployeeRequest;
import com.ibangnuo.framework.domain.request.shop.ShopRequest;
import com.ibangnuo.framework.model.response.ObjectResult;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;
import java.util.Map;

/**
 * @Author:ly
 * @Data:2019/12/27 10:24
 * @Verdion:1.0
 */
@Api(value="门店管理",description = "门店管理的增删改查")
public interface MerchantsControllerApi {

    @ApiOperation("门店查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="merchantsNumber",value = "编号",required=true,paramType="path",dataType="String")
    })
    QueryResponseResult query(Map map);



    @ApiOperation("门店删除")
    @ApiImplicitParams({@ApiImplicitParam(name="merchantsUuid",value = "门店id",required=true,paramType="path",dataType="String")})
    QueryResponseResult delMerchants(String adminUuid);

    @ApiOperation("门店添加")
    @ApiImplicitParams({
           @ApiImplicitParam(name="merchantsAddress",value = "地址",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="merchantsName",value = "门店名称",required=true,paramType="path",dataType="String"),
           })
    QueryResponseResult addMerchants(Map employeeRequest);




    @ApiOperation("门店编辑")
    @ApiImplicitParams({
            @ApiImplicitParam(name="merchantsNumber",value = "编号",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="merchantsUuid",value = "id",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="merchantsAddress",value = "地址",required=true,paramType="path",dataType="Long"),
            @ApiImplicitParam(name="merchantsName",value = "门店名称",required=true,paramType="path",dataType="Integer"),
            @ApiImplicitParam(name="merchantsCreateTime",value = "创建时间",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="merchantsStatus",value = "状态",required=true,paramType="path",dataType="int"),
    })
    QueryResponseResult upMerchants(Map map);

    @ApiOperation("门店信息回显")
    @ApiImplicitParams({
            @ApiImplicitParam(name="id",value = "门店id",required=true,paramType="path",dataType="String")
    })
    QueryResponseResult findById(String id);

    @ApiOperation("门店名称查询")
    QueryResponseResult selectShopName();

    @ApiOperation("添加门店")
    ObjectResult addNew(ShopRequest shopRequest);

    @ApiOperation("依据商家id查询门店")
    @ApiImplicitParams({
            @ApiImplicitParam(name="commercialId",value = "商家id",required=true,paramType="path",dataType="String")
    })
    ObjectResult findByCommercialIdNew(String commercialId);


}
